﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web/FarmMaster.master" AutoEventWireup="true" CodeFile="search.aspx.cs" Inherits="Web_search" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div id="main">
		<div class="left">
			<div class="left1">
				<div id="PARENT">
					<ul	id="navv">
						<li class="first"><a>站内搜索</a>
						</li>
                        <li></li>   
					</ul>
				</div>
			</div>
			<div class="left2" style="padding-top:13px;">
				<div class="tle">
					<span class="text1">培训通知</span>
				</div>
				<div class="tents">
					<ul style=" padding-top:5px;">
                        <%
                        if (ts.Count() != 0)
                        {
                            foreach (Train aT in ts)
                            {
                                string memo = aT.Name + "将于" + string.Format("{0:yyyy-MM-dd HH:mm}", aT.Started) + "在" + aT.Address + "举办";
                    
                                if (aT.Amended != null)
                                {
                    %>
                                <li>[<span style="color:#f60">变更公示</span>]<a href='ViewTrain.aspx?pid=<%=aT.ID %>'><%=memo.Length > 7 ? memo.Substring(0, 6) + "..." : memo%></a></li>
                     <%                                                    
                                }
                                else
                                { 
                     %>    <li><a href='ViewTrain.aspx?pid=<%=aT.ID %>'><%=memo.Length > 12 ? memo.Substring(0, 11) + "..." : memo%></a></li>
                                                
                    <%                       } 
                            }
                        }     
                    %>
						
					</ul>
				</div>
			</div>
			<div class="left2">
				<div class="tle">
					<span class="text1">最新动态</span>
				</div>
				<div class="tents">
					<ul style=" padding-top:5px;">
						<asp:Repeater ID="Repeater3" runat="server">
                            <ItemTemplate>
                                <li><a href='<%=Toolkit.ApplicationRoot %>/Html/<%#Eval("url") %>'><%#Eval("Title").ToString().Length>12?Eval("Title").ToString().Substring(0,11)+"...":Eval("Title") %></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
					</ul>
				</div>
			</div>
		</div>
		<div class="right">
			<div class="headline">
				您的当前位置：首页-->站内搜索 "<%=content %>" 的相关内容
			</div>
			<div class="content">
                <%
                    if (all_page == 0)
                    { 
                %>
                        很抱歉，没有找到 "<%=content %>" 的相关内容。
                <%        
                    }
                %>
                <asp:Repeater ID="Repeater1" runat="server">
                    <ItemTemplate>
                        <ul style="padding-top:10px;">
					        <li class="detail"><span style="width:10px; height:20px; display:block; float:left;">▪</span><a href='<%=Toolkit.ApplicationRoot %>/Html/<%#Eval("url") %>'><%#Eval("Title").ToString().Length>40?Eval("Title").ToString().Substring(0,38)+"...":Eval("Title") %></a></li>
					        <li class="date"><%#string.Format("{0:yyyy-MM-dd}",Eval("published")) %></li>
				        </ul>
                    </ItemTemplate>
                </asp:Repeater>
			</div>
            <div class="cup">
	            <ul>
		            <li class="cup1"><asp:ImageButton ID="FirstButton" runat="server" 
                            SkinID="FirstButton" onclick="FirstButton_Click" /></li>
		            <li class="cup2"><asp:ImageButton ID="PreviousButton" runat="server" 
                            SkinID="PreviousButton" onclick="PreviousButton_Click" /></li>
		            <li class="cup5">第<%=pages %>页/共<%=all_page %>页</li>
		            <li class="cup3"><asp:ImageButton ID="NextButton" runat="server" 
                            SkinID="NextButton" onclick="NextButton_Click" /></li>
		            <li class="cup4"><asp:ImageButton ID="LastButton" runat="server" 
                            SkinID="LastButton" onclick="LastButton_Click" /></li>
	            </ul>
            </div>
		</div>
	</div>
      
</asp:Content>

